Integrand size = 14, antiderivative size = 179 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {6 i d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )}{b^4}+\frac {6 i d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )}{b^4} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {4265, 2611, 6744, 2320, 6724} \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {6 i d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )}{b^4}+\frac {6 i d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )}{b^4}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2} \]
[In]
[Out]
Rule 2320
Rule 2611
Rule 4265
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {(3 i d) \int (c+d x)^2 \log \left (1-i e^{a+b x}\right ) \, dx}{b}+\frac {(3 i d) \int (c+d x)^2 \log \left (1+i e^{a+b x}\right ) \, dx}{b} \\ & = \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {\left (6 i d^2\right ) \int (c+d x) \operatorname {PolyLog}\left (2,-i e^{a+b x}\right ) \, dx}{b^2}-\frac {\left (6 i d^2\right ) \int (c+d x) \operatorname {PolyLog}\left (2,i e^{a+b x}\right ) \, dx}{b^2} \\ & = \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {\left (6 i d^3\right ) \int \operatorname {PolyLog}\left (3,-i e^{a+b x}\right ) \, dx}{b^3}+\frac {\left (6 i d^3\right ) \int \operatorname {PolyLog}\left (3,i e^{a+b x}\right ) \, dx}{b^3} \\ & = \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {\left (6 i d^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,-i x)}{x} \, dx,x,e^{a+b x}\right )}{b^4}+\frac {\left (6 i d^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,i x)}{x} \, dx,x,e^{a+b x}\right )}{b^4} \\ & = \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {6 i d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )}{b^4}+\frac {6 i d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )}{b^4} \\ \end{align*}
Time = 0.36 (sec) , antiderivative size = 343, normalized size of antiderivative = 1.92 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {i \left (-2 i b^3 c^3 \arctan \left (e^{a+b x}\right )+3 b^3 c^2 d x \log \left (1-i e^{a+b x}\right )+3 b^3 c d^2 x^2 \log \left (1-i e^{a+b x}\right )+b^3 d^3 x^3 \log \left (1-i e^{a+b x}\right )-3 b^3 c^2 d x \log \left (1+i e^{a+b x}\right )-3 b^3 c d^2 x^2 \log \left (1+i e^{a+b x}\right )-b^3 d^3 x^3 \log \left (1+i e^{a+b x}\right )-3 b^2 d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )+3 b^2 d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )+6 b c d^2 \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )+6 b d^3 x \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )-6 b c d^2 \operatorname {PolyLog}\left (3,i e^{a+b x}\right )-6 b d^3 x \operatorname {PolyLog}\left (3,i e^{a+b x}\right )-6 d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )+6 d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )\right )}{b^4} \]
[In]
[Out]
\[\int \left (d x +c \right )^{3} \operatorname {sech}\left (b x +a \right )d x\]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 497 vs. \(2 (146) = 292\).
Time = 0.27 (sec) , antiderivative size = 497, normalized size of antiderivative = 2.78 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {6 i \, d^{3} {\rm polylog}\left (4, i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 6 i \, d^{3} {\rm polylog}\left (4, -i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) - 3 \, {\left (-i \, b^{2} d^{3} x^{2} - 2 i \, b^{2} c d^{2} x - i \, b^{2} c^{2} d\right )} {\rm Li}_2\left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 3 \, {\left (i \, b^{2} d^{3} x^{2} + 2 i \, b^{2} c d^{2} x + i \, b^{2} c^{2} d\right )} {\rm Li}_2\left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) + {\left (i \, b^{3} c^{3} - 3 i \, a b^{2} c^{2} d + 3 i \, a^{2} b c d^{2} - i \, a^{3} d^{3}\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + i\right ) + {\left (-i \, b^{3} c^{3} + 3 i \, a b^{2} c^{2} d - 3 i \, a^{2} b c d^{2} + i \, a^{3} d^{3}\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - i\right ) + {\left (-i \, b^{3} d^{3} x^{3} - 3 i \, b^{3} c d^{2} x^{2} - 3 i \, b^{3} c^{2} d x - 3 i \, a b^{2} c^{2} d + 3 i \, a^{2} b c d^{2} - i \, a^{3} d^{3}\right )} \log \left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right ) + 1\right ) + {\left (i \, b^{3} d^{3} x^{3} + 3 i \, b^{3} c d^{2} x^{2} + 3 i \, b^{3} c^{2} d x + 3 i \, a b^{2} c^{2} d - 3 i \, a^{2} b c d^{2} + i \, a^{3} d^{3}\right )} \log \left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right ) + 1\right ) - 6 \, {\left (i \, b d^{3} x + i \, b c d^{2}\right )} {\rm polylog}\left (3, i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 6 \, {\left (-i \, b d^{3} x - i \, b c d^{2}\right )} {\rm polylog}\left (3, -i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right )}{b^{4}} \]
[In]
[Out]
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int \left (c + d x\right )^{3} \operatorname {sech}{\left (a + b x \right )}\, dx \]
[In]
[Out]
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )}^{3} \operatorname {sech}\left (b x + a\right ) \,d x } \]
[In]
[Out]
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )}^{3} \operatorname {sech}\left (b x + a\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int \frac {{\left (c+d\,x\right )}^3}{\mathrm {cosh}\left (a+b\,x\right )} \,d x \]
[In]
[Out]